<%@include file="taglibs.jsp" %>

<html>
<head>
	<title>PORTAL - Login</title>
	<%@include file="header_imports.jsp" %>
</head>
<body>
<div class="container">
  <div class="contentSingleColumn" style="float: left">
    <div class="header" onclick="window.location='/PortalGrupo04/'"></div> 
    <%@include file="menuHome_topo.jsp" %>
    <div class="mainContent" style="font-size: 12px;">
    	<style>
			tr td {
				border: 1px solid gray;
			}
		</style>
        <h1> MEUS PEDIDOS </h1>
        
        <p style="font-size: 10px">
        	Para visualizar mais detalhes, clique sobre o n&uacute;mero do pedido.
        </p>
        
        <!--  LISTA DOS PEDIDOS -->
        <table width="50%" border="0" style="margin-left: 25%; margin-bottom: 20px;">
			<tr style="font-weight: bold; color: grey;">
	            <td>N&uacute;mero</td>
	            <td>Data</td>
	        </tr>
			<c:forEach var="p" items="${listPedidos}">
		        <tr>
		            <td><a href="/PortalGrupo04/pedidoView?id=${p.id}">${p.id}</a></td>
		            <td><fmt:formatDate value="${p.dataCriacao}" pattern="dd/MM/yyyy" /></td>
		        </tr>
	       	</c:forEach>
        </table>
        <!--  /LISTA DOS PEDIDOS -->
		
	   
    </div>
    <!-- end .content --></div>
    <%@include file="rodape.jsp" %>
  <!-- end .container --></div>


</body>
</html>
